package org.lzy.shop.viewmodel.repository

import org.lzy.shop.response.CouponResponse
import org.lzy.shop.response.HomeGoodAllResponse
import org.lzy.shop.response.HomeResponse

interface HomeRepository {
    /**
     * 获取主页数据
     */
    suspend fun getHomeData(): HomeResponse?

    /**
     * 获取主页所有商品
     */
    suspend fun getHomeGoodsAll(): HomeGoodAllResponse?

    /**
     * 获取优惠券数据
     */
    suspend fun getCoupon(): CouponResponse?

    /**
     * 领取优惠券
     */
    suspend fun couponReceive(couponId: Int?): String?
}